CC		= gcc
CXX		= g++

CFLAGS	= -g
LDFLAGS	= --static

LIBS	=

TARGETS	= cpuid

all: ${TARGETS}

clean:
	rm -f *.o
	rm -f ${TARGETS}

%.o:%.c
	${CC} ${CFLAGS} -o $@ -c $<
%.o:%.cpp
	${CXX} ${CFLAGS} -o $@ -c $<

cpuid:cpuid.o CPUFunctionPrint.o
	${CXX} ${LDFLAGS} -o $@ $^ ${LIBS}
